package com.bogu.constant;

public class ConstantS {
	public static String  diskCachePath ="/mnt/sdcard/BoguImage";
	  public static String  URL_IP;
	  public static final String KEY_SETTING="settings";
    public static String  image_path="image/";
    public static String  avatar_path="avatar/";
    public static String server="Bogu_Platform/";
    public static  String URL_UPLOAD = getIP()+"Bogu_Platform/servlet/UpLoad";
	  public static  String URL_LOGIN= getIP()+"Bogu_Platform/servlet/StudentPMServlet";
	  public static  String URL_SAPI = getIP()+"Bogu_Platform/servlet/StudentPMServlet";
	  public static  String URL_RES = getIP()+"Bogu_Platform/servlet/resource.json";
	  public static  String URL_BBS = getIP()+"Bogu_Platform/servlet/forum";
	  public static  String URL_RES_ATT = getIP()+"Bogu_Platform/servlet/res_att";
	 
	  public static final String KEY_PICURL="pic_url";
	  public static final String KEY_NAME="name";
	  public static final String KEY_PASSWORD="pwd";
	  public static final String KEY_AUTOLOGIN="auto_login";
	  public static final String KEY_REMEMBER="remember_password";
	  public static final String KEY_UID="uid";
	  public static  String URL_ROOT = getIP()+"Bogu_Platform/";
	  public static final String KEY_LOCAl="local";
	  public static final String KEY_LOCAl_BIG="local_big";
	  public static final String URL_FORUM=getIP()+"Bogu_Platform/servlet/MyForumServlet";
	  public static  String URL_TLOGIN= getIP()+"Bogu_Platform/servlet/TeacherPMServlet";
	  public static final String KEY_USER_TYPE="user_type";
	  public static final int USER_TYPE_STUDENT=1;
	  public static final int USER_TYPE_TEACHER=2;
	  public static  String URL_UPLOAD_2 = getIP()+"Bogu_Platform/servlet/FileUpLoad";
	
	  
		public static final int GET_RESOURCE_OK=31;
		public static final int GET_RESOURCE_BAD=32;
		public static final int GET_RESOURCE_START=30;
		
		public static final String KEY_INTENT_CATEGORY="category";
		public static final String KEY_INTENT_ACTION="action";
		public static final int VALUE_INTENT_TREE=1;
		public static final int VALUE_INTENT_FLOWER=2;
		public static final int VALUE_INTENT_FAMLY=3;
		public static final int VALUE_INTENT_GNUS=4;
		public static final int VALUE_INTENT_SEARCH=5;
		public static final int VALUE_INTENT_PEST=6;
		public static final int VALUE_INTENT_ANIMAL=7;
	    public static boolean SERVICE=true;
	  public static int position;
	  private static String getIP(){
		  if(URL_IP==null){
			URL_IP="http://192.168.1.99:8080/";
			//URL_IP="http://121.199.18.58/";
		  }
		return URL_IP;
}}
